import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    /**
     {
      path: '/',
      name: 'home',
      component: Home
    },
     **/
    {
      path: '/',
      name: 'index',
      component: () => import('./views/Index.vue')
    },
    {
      path: '/loginwork.html',
      name: 'loginwork',
      component: () => import('./views/sign/work.vue')
    },
    {
      path: '/additem',
      name: 'additem',
      component: () => import('./views/AddItem.vue')
    },
    {
      path: '/item/detail',
      name: 'detail',
      component: () => import('./views/item/Detail.vue')
    },
    {
      path: '/item/parameter',
      name: 'parameter',
      component: () => import('./views/item/Parameter.vue')
    },
    {
      path: '/item/rules',
      name: 'rules',
      component: () => import('./views/item/Rules.vue')
    },
    {
      path: '/item/push',
      name: 'push',
      component: () => import('./views/item/Push.vue')
    },
    {
      path: '/item/manager',
      name: 'manager',
      component: () => import('./views/item/Manager.vue')
    },
    {
      path: '/item/members',
      name: 'members',
      component: () => import('./views/item/Members.vue')
    },
    {
      path: '/item/info',
      name: 'info',
      component: () => import('./views/item/Info.vue')
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
    },
    {
      path: '/item/quota/cost',
      name: 'cost',
      component: () => import('./views/item/quota/cost/cost.vue')
    },
    {
      path: '/item/quota/quality',
      name: 'cost',
      component: () => import('./views/item/quota/quality/quality.vue')
    },
    {
      path: '/item/quota/equipment',
      name: 'cost',
      component: () => import('./views/item/quota/equipment/equipment.vue')
    },
    {
      path: '/item/quota/scene',
      name: 'cost',
      component: () => import('./views/item/quota/scene/scene.vue')
    },
    {
      path: '/item/quota/security',
      name: 'cost',
      component: () => import('./views/item/quota/security/security.vue')
    },
    {
      path: '/item/quota/morale',
      name: 'cost',
      component: () => import('./views/item/quota/morale/morale.vue')
    },
    {
      path: '/item/quota/quality/qualityRecord',
      name: 'cost',
      component: () => import('./views/item/quota/quality/qualityRecord.vue')
    },
    {
      path: '/item/quota/cost/costRecord',
      name: 'cost',
      component: () => import('./views/item/quota/cost/costRecord.vue')
    },
	{
      path: '/item/quota/setting/settingCost',
      name: 'cost',
      component: () => import('./views/item/quota/setting/settingCost.vue')
    },
    {
      path: '/item/quota/setting/settingQuality',
      name: 'cost',
      component: () => import('./views/item/quota/setting/settingQuality.vue')
    },
    {
      path: '/item/quota/setting/settingEquipment',
      name: 'cost',
      component: () => import('./views/item/quota/setting/settingEquipment.vue')
    },
    {
      path: '/item/quota/setting/settingSecurity',
      name: 'cost',
      component: () => import('./views/item/quota/setting/settingSecurity.vue')
    },
    {
      path: '/item/quota/setting/setting5S',
      name: 'cost',
      component: () => import('./views/item/quota/setting/setting5S.vue')
    },
    {
      path: '/item/quota/cost/costEfficiency',
      name: 'cost',
      component: () => import('./views/item/quota/cost/costEfficiency.vue')
    },
    {
      path: '/item/quota/quality/qualityScrap',
      name: 'cost',
      component: () => import('./views/item/quota/quality/qualityScrap.vue')
    },
    {
      path: '/item/quota/quality/qualityHanfeng',
      name: 'quality_hanfeng',
      component: () => import('./views/item/quota/quality/quality_hanfeng.vue')
    },
    {
      path: '/item/quota/quality/qualityChicun',
      name: 'quality_hanfeng',
      component: () => import('./views/item/quota/quality/quality_chicun.vue')
    },
    {
      path: '/item/quota/equipment/equipmentDowntime',
      name: 'cost',
      component: () => import('./views/item/quota/equipment/equipmentDowntime.vue')
    },
    {
      path: '/item/quota/equipment/equipmentCrop',
      name: 'cost',
      component: () => import('./views/item/quota/equipment/equipmentCrop.vue')
    },
    {
      path: '/item/quota/scene/sceneRecord',
      name: 'cost',
      component: () => import('./views/item/quota/scene/sceneRecord.vue')
    },
    {
      path: '/item/quota/security/securityRecord',
      name: 'cost',
      component: () => import('./views/item/quota/security/securityRecord.vue')
    },
    /*
    * 员工端
    * */
    {
      path: '/item/staff/',
      name: 'cost',
      component: () => import('./views/item/staff/staffIndex.vue')
    },
    {
      path: '/item/staff/staffDetail',
      name: 'cost',
      component: () => import('./views/item/staff/staffDetail.vue')
    },
    {
      path: '/item/staff/staffDetail_yichang',
      name: 'cost',
      component: () => import('./views/item/staff/staffDetail_yichang.vue')
    },
    {
      path: '/item/staff/staffDetail_hanfeng',
      name: 'cost',
      component: () => import('./views/item/staff/staffDetail_hanfeng.vue')
    },
    {
      path: '/item/staff/staffDetail_chicun',
      name: 'cost',
      component: () => import('./views/item/staff/staffDetail_chicun.vue')
    },
    {
      path: '/item/staff/YuanGongZiJian/staffDetail_ygzj',
      name: 'ygzj',
      component: () => import('./views/item/staff/YuanGongZiJian/staffDetail_ygzj.vue')
    },
    {
      path: '/item/staff/YuanGongZiJian/staffDetail_table',
      name: 'table',
      component: () => import('./views/item/staff/YuanGongZiJian/staffDetail_table.vue')
    },
    /*
     * 问题板块
     **/
    {
      path: '/item/question/questionNew',
      name: 'questionNew',
      component: () => import('./views/item/question/questionNew.vue')
    },
    {
      path: '/item/question/questionDetail',
      name: 'questionDetail',
      component: () => import('./views/item/question/questionDetail.vue')
    },
  ]
})
